package org.xlx.xlx_oa.warehouse.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.xlx.xlx_oa.warehouse.domain.Warehouse;
import org.xlx.xlx_oa.warehouse.domain.dto.WarehouseDto;

import java.util.List;

@Repository
public interface WarehouseMapper extends BaseMapper<Warehouse> {
    List<WarehouseDto> selectWarehouseList(
            @Param("id") Long id,
            @Param("title") String title,
            @Param("pageNum") Integer pageNum,
            @Param("pageSize") Integer pageSize
    );

    WarehouseDto selectWarehouse(@Param("id") Long id);

}
